Optimal. Leaf size=285 \[ -\frac{3 b^2 n^2 \left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )}{2 e^2}+\frac{12 a b^2 d n^2}{e \sqrt{x}}+\frac{3 b n \left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^2}{2 e^2}-\frac{6 b d n \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^2}{e^2}-\frac{\left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}+\frac{2 d \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}+\frac{12 b^3 d n^2 \left (d+\frac{e}{\sqrt{x}}\right ) \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )}{e^2}+\frac{3 b^3 n^3 \left (d+\frac{e}{\sqrt{x}}\right )^2}{4 e^2}-\frac{12 b^3 d n^3}{e \sqrt{x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.272381, antiderivative size = 285, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 8, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {2454, 2401, 2389, 2296, 2295, 2390, 2305, 2304} \[ -\frac{3 b^2 n^2 \left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )}{2 e^2}+\frac{12 a b^2 d n^2}{e \sqrt{x}}+\frac{3 b n \left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^2}{2 e^2}-\frac{6 b d n \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^2}{e^2}-\frac{\left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}+\frac{2 d \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}+\frac{12 b^3 d n^2 \left (d+\frac{e}{\sqrt{x}}\right ) \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )}{e^2}+\frac{3 b^3 n^3 \left (d+\frac{e}{\sqrt{x}}\right )^2}{4 e^2}-\frac{12 b^3 d n^3}{e \sqrt{x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2454
Rule 2401
Rule 2389
Rule 2296
Rule 2295
Rule 2390
Rule 2305
Rule 2304
Rubi steps
\begin{align*} \int \frac{\left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{x^2} \, dx &=-\left (2 \operatorname{Subst}\left (\int x \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx,x,\frac{1}{\sqrt{x}}\right )\right )\\ &=-\left (2 \operatorname{Subst}\left (\int \left (-\frac{d \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e}+\frac{(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{e}\right ) \, dx,x,\frac{1}{\sqrt{x}}\right )\right )\\ &=-\frac{2 \operatorname{Subst}\left (\int (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx,x,\frac{1}{\sqrt{x}}\right )}{e}+\frac{(2 d) \operatorname{Subst}\left (\int \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \, dx,x,\frac{1}{\sqrt{x}}\right )}{e}\\ &=-\frac{2 \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^3 \, dx,x,d+\frac{e}{\sqrt{x}}\right )}{e^2}+\frac{(2 d) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^3 \, dx,x,d+\frac{e}{\sqrt{x}}\right )}{e^2}\\ &=\frac{2 d \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}-\frac{\left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}+\frac{(3 b n) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+\frac{e}{\sqrt{x}}\right )}{e^2}-\frac{(6 b d n) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+\frac{e}{\sqrt{x}}\right )}{e^2}\\ &=-\frac{6 b d n \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^2}{e^2}+\frac{3 b n \left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^2}{2 e^2}+\frac{2 d \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}-\frac{\left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}-\frac{\left (3 b^2 n^2\right ) \operatorname{Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+\frac{e}{\sqrt{x}}\right )}{e^2}+\frac{\left (12 b^2 d n^2\right ) \operatorname{Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+\frac{e}{\sqrt{x}}\right )}{e^2}\\ &=\frac{3 b^3 n^3 \left (d+\frac{e}{\sqrt{x}}\right )^2}{4 e^2}+\frac{12 a b^2 d n^2}{e \sqrt{x}}-\frac{3 b^2 n^2 \left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )}{2 e^2}-\frac{6 b d n \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^2}{e^2}+\frac{3 b n \left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^2}{2 e^2}+\frac{2 d \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}-\frac{\left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}+\frac{\left (12 b^3 d n^2\right ) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+\frac{e}{\sqrt{x}}\right )}{e^2}\\ &=\frac{3 b^3 n^3 \left (d+\frac{e}{\sqrt{x}}\right )^2}{4 e^2}+\frac{12 a b^2 d n^2}{e \sqrt{x}}-\frac{12 b^3 d n^3}{e \sqrt{x}}+\frac{12 b^3 d n^2 \left (d+\frac{e}{\sqrt{x}}\right ) \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )}{e^2}-\frac{3 b^2 n^2 \left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )}{2 e^2}-\frac{6 b d n \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^2}{e^2}+\frac{3 b n \left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^2}{2 e^2}+\frac{2 d \left (d+\frac{e}{\sqrt{x}}\right ) \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}-\frac{\left (d+\frac{e}{\sqrt{x}}\right )^2 \left (a+b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )\right )^3}{e^2}\\ \end{align*}
Mathematica [A] time = 0.614716, size = 558, normalized size = 1.96 \[ \frac{-6 b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right ) \left (e \left (2 a^2 e-2 a b n \left (e-2 d \sqrt{x}\right )+b^2 n^2 \left (e-6 d \sqrt{x}\right )\right )+2 b d^2 n x (3 b n-2 a) \log \left (d \sqrt{x}+e\right )+b d^2 n x \log (x) (2 a-3 b n)\right )+12 a^2 b d^2 n x \log \left (d \sqrt{x}+e\right )-6 a^2 b d^2 n x \log (x)-12 a^2 b d e n \sqrt{x}+6 a^2 b e^2 n-4 a^3 e^2+6 b^2 d^2 n^2 x \log ^2\left (d+\frac{e}{\sqrt{x}}\right ) \left (2 a+2 b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )+2 b n \log \left (d \sqrt{x}+e\right )-b n \log (x)-3 b n\right )+6 b^2 d^2 n^2 x \log \left (d+\frac{e}{\sqrt{x}}\right ) \left (2 \log \left (d \sqrt{x}+e\right )-\log (x)\right ) \left (-2 a-2 b \log \left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )+3 b n\right )+6 b^2 \log ^2\left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right ) \left (e \left (b n \left (e-2 d \sqrt{x}\right )-2 a e\right )+2 b d^2 n x \log \left (d \sqrt{x}+e\right )-b d^2 n x \log (x)\right )-36 a b^2 d^2 n^2 x \log \left (d \sqrt{x}+e\right )+18 a b^2 d^2 n^2 x \log (x)+36 a b^2 d e n^2 \sqrt{x}-6 a b^2 e^2 n^2-4 b^3 e^2 \log ^3\left (c \left (d+\frac{e}{\sqrt{x}}\right )^n\right )-8 b^3 d^2 n^3 x \log ^3\left (d+\frac{e}{\sqrt{x}}\right )+42 b^3 d^2 n^3 x \log \left (d \sqrt{x}+e\right )-21 b^3 d^2 n^3 x \log (x)-42 b^3 d e n^3 \sqrt{x}+3 b^3 e^2 n^3}{4 e^2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.362, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{{x}^{2}} \left ( a+b\ln \left ( c \left ( d+{e{\frac{1}{\sqrt{x}}}} \right ) ^{n} \right ) \right ) ^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.17022, size = 767, normalized size = 2.69 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.86846, size = 1162, normalized size = 4.08 \begin{align*} \frac{3 \, b^{3} e^{2} n^{3} - 4 \, b^{3} e^{2} \log \left (c\right )^{3} - 6 \, a b^{2} e^{2} n^{2} + 6 \, a^{2} b e^{2} n - 4 \, a^{3} e^{2} + 4 \,{\left (b^{3} d^{2} n^{3} x - b^{3} e^{2} n^{3}\right )} \log \left (\frac{d x + e \sqrt{x}}{x}\right )^{3} + 6 \,{\left (b^{3} e^{2} n - 2 \, a b^{2} e^{2}\right )} \log \left (c\right )^{2} - 6 \,{\left (2 \, b^{3} d e n^{3} \sqrt{x} - b^{3} e^{2} n^{3} + 2 \, a b^{2} e^{2} n^{2} +{\left (3 \, b^{3} d^{2} n^{3} - 2 \, a b^{2} d^{2} n^{2}\right )} x - 2 \,{\left (b^{3} d^{2} n^{2} x - b^{3} e^{2} n^{2}\right )} \log \left (c\right )\right )} \log \left (\frac{d x + e \sqrt{x}}{x}\right )^{2} - 6 \,{\left (b^{3} e^{2} n^{2} - 2 \, a b^{2} e^{2} n + 2 \, a^{2} b e^{2}\right )} \log \left (c\right ) - 6 \,{\left (b^{3} e^{2} n^{3} - 2 \, a b^{2} e^{2} n^{2} + 2 \, a^{2} b e^{2} n - 2 \,{\left (b^{3} d^{2} n x - b^{3} e^{2} n\right )} \log \left (c\right )^{2} -{\left (7 \, b^{3} d^{2} n^{3} - 6 \, a b^{2} d^{2} n^{2} + 2 \, a^{2} b d^{2} n\right )} x - 2 \,{\left (b^{3} e^{2} n^{2} - 2 \, a b^{2} e^{2} n -{\left (3 \, b^{3} d^{2} n^{2} - 2 \, a b^{2} d^{2} n\right )} x\right )} \log \left (c\right ) - 2 \,{\left (3 \, b^{3} d e n^{3} - 2 \, b^{3} d e n^{2} \log \left (c\right ) - 2 \, a b^{2} d e n^{2}\right )} \sqrt{x}\right )} \log \left (\frac{d x + e \sqrt{x}}{x}\right ) - 6 \,{\left (7 \, b^{3} d e n^{3} + 2 \, b^{3} d e n \log \left (c\right )^{2} - 6 \, a b^{2} d e n^{2} + 2 \, a^{2} b d e n - 2 \,{\left (3 \, b^{3} d e n^{2} - 2 \, a b^{2} d e n\right )} \log \left (c\right )\right )} \sqrt{x}}{4 \, e^{2} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left (c{\left (d + \frac{e}{\sqrt{x}}\right )}^{n}\right ) + a\right )}^{3}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]